<script setup>
import { useStore } from 'vuex';

const store=useStore();
const add=()=>{
  store.commit({type:'counter/increment'});
}
</script>

<template>
  <div class="about">
    <button @click="add">add</button>
    <h1>{{store.state.counter.count}}</h1>
  </div>
</template>
